package com.czh.springboot04.mapper;

import com.czh.springboot04.entity.CourseReply;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface CourseReplyMapper {

    int insertCourseReply(CourseReply courseReply);
    int updateCourseReplyById(CourseReply courseReply);
    CourseReply selectCourseReplyById(Integer id);
    int deleteCourseReplyById(Integer id);
    int deleteCourseReplyByList(List<Integer> idList);
    List<CourseReply> selectCourseReplyAll(@Param("nickName") String nickName, @Param("title") String title);

}
